﻿<%@ Page Title="" Language="C#" MasterPageFile="~/site.Master" AutoEventWireup="true" CodeFile="Systems.aspx.cs" Inherits="Systems" %>
<%@ MasterType virtualpath="./site.master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
	<link rel="Stylesheet" href="misc/Systems.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div style="text-align: center; vertical-align: top;">
<table style="width: 100%;">
	<tr>
		<td>Your Systems: <br />
			<asp:UpdatePanel ID="up1" runat="server"><ContentTemplate>
				<asp:ListBox ID="lbSystems" runat="server" Width="100" AutoPostBack="true" OnSelectedIndexChanged="lbSystem_SelectionChanged" />
				<asp:Button ID="btnAddSystem" runat="server" Width="100" text="Add System" OnClick="btnAddSystem_Click" Enabled="false"/>
			</ContentTemplate></asp:UpdatePanel>
		</td>
		<td width="100%">
			<asp:UpdatePanel ID="up2" runat="server"><ContentTemplate>
				<asp:Label ID="lblComputerID" runat="server" Text="Select a computer to edit it, or click &quot;Add System&quot;." /> <br />
				<asp:Panel ID="pnlAdd1" runat="server" Visible="false">
					<table style="width: 100%;">
						<tr>
							<td>Name:</td>
							<td style="width: 500px;"><asp:TextBox ID="txtName" runat="server" Width="100%" MaxLength="80" /></td>
						</tr>
						<tr>
							<td>What do you use this system for?</td>
							<td><asp:TextBox ID="txtUsage" runat="server" Width="100%" MaxLength="2000" TextMode="MultiLine" Height="100" /></td>
						</tr>
						<tr>
							<td>Primary OS:</td>
							<td><asp:DropDownList ID="ddlOS" runat="server" Width="100%" /></td>
						</tr>
						<tr>
							<td>RAM (<a href="http://en.wikipedia.org/wiki/GiB">GiB</a>):</td>
							<td><asp:TextBox ID="txtRAM" runat="server" MaxLength="4" Width="40" /></td>
						</tr>
					</table>
					<asp:Button ID="btnAdd1_2" runat="server" OnClick="btnAdd1_2_Click" text="Next &gt;" />
				</asp:Panel>
				<asp:Panel ID="pnlAdd2" runat="server" Visible="false">
					Select the Video Cards you have installed:
					<table style="width: 100%;">
						<tr>
							<td>Available Cards:<br /><asp:ListBox ID="lbAvailableCards" Width="150" Height="200" runat="server" /></td>
							<td style="width: 150px; vertical-align:middle; text-align:center;" >
								<asp:Button ID="btn2Add" runat="server" Text="Add &gt;" width="100" /><br />
								<asp:Button ID="btn2Remove" runat="server" width="100" Text="&lt; Remove" />
							</td>
							<td>System's Cards: <br /><asp:ListBox ID="lbYourCards" Width="150" Height="200" runat="server" /></td>
						</tr>
					</table>
					<asp:Button ID="btnAdd2_1" runat="server" Text="&lt; Previous" Width="100" />
					<asp:Button ID="btnAdd2_3" runat="server" Text="Next &gt;" Width="100" />
				</asp:Panel>
			</ContentTemplate></asp:UpdatePanel>
		</td>
	</tr>
</table>
</div>
</asp:Content>
